Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLDR-17081 Fix PNF test data for ICU #3270

Conversation

macchiati
Copy link
Member

CLDR-17081

This is not yet complete; it fixes some of the "inclusion of draft data" plus the stray superscript

  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

@macchiati
Copy link
Member Author

Still draft for now, so just fyi

Copy link
Contributor

@richgillam richgillam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good so far...

CLDRFile cldrFile = factory.make(locale, true);
CLDRFile cldrFile =
factory.make(locale, true, DraftStatus.contributed); // don't include
// draft=unconfirmed/provisional
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what I'm looking at, but is DraftStatus.contributed a property of the whole file? What I was seeing in some files was that some person-name resources had their draft status set to "contributed" (or, actually, not mentioned at all), and others had their draft status set to "provisional" or "unconfirmed". Does this catch that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It sets the minimum bar for items to be included. So contributed means either contributed or approved (which is implicit if there is no draft value). That's the general bar we use for ICU, so this should get better results. cc @pedberg-icu

richgillam
richgillam previously approved these changes Sep 12, 2023
Copy link
Contributor

@richgillam richgillam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the changes look great. Thank you!

  • Is it worth looking through all the files to make sure we don't have any other <namePattern alt="1">↑↑↑</namePattern> stuff in there?
  • Are there other changes coming, or is this all ready to go?

</personName>
<personName order="sorting" length="medium" usage="referring" formality="formal">
<namePattern>{surname-core} {surname2}, {given} {given2-initial} {surname-prefix}</namePattern>
<namePattern alt="1">{surname-core} {surname2}, {given} {given2} {surname-prefix}</namePattern>
<namePattern alt="1">{surname-core}, {given} {given2} {surname-prefix}</namePattern>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you want this to be {given2} when the first entry has {given2-initial}?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed this, will examine in 1/2 hour

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it (lined up all the others for comparison, too, so I wouldn't miss any others). Good catch.

richgillam
richgillam previously approved these changes Sep 12, 2023
Copy link
Contributor

@richgillam richgillam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! But see question about {given2-initial} in my comments above.

richgillam
richgillam previously approved these changes Sep 12, 2023
Copy link
Contributor

@richgillam richgillam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cut and print!

@macchiati
Copy link
Member Author

Dang, forgot to rerun the GenerateTestData! Can you stamp again?

Copy link
Contributor

@richgillam richgillam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stamped again! 😀

@macchiati macchiati merged commit 2fa7830 into unicode-org:main Sep 13, 2023
7 checks passed
@macchiati macchiati deleted the CLDR-17081-Remove-PNF-testData-below-contributed branch September 13, 2023 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants